#include "UserInterfaceGP2X.h"

#include "InputGP2X.h"
#include "ComponentManager.h"

CUserInterfaceGP2X::CUserInterfaceGP2X(){}

CUserInterfaceGP2X::~CUserInterfaceGP2X(){}

bool CUserInterfaceGP2X::init()
{
	m_input= new CInputGP2X();

	return m_input->initialiseActionMapping();
}

void CUserInterfaceGP2X::inputDoUpdate()
{
	m_input->doUpdate();
}

void CUserInterfaceGP2X::displayHUD()
{
	int hp = CM.WORLD().getHealthPlayer();
	if(hp<0)
		hp=0;
	CM.VISU().displayNumber(0, CVector2i(-100, 0), hp);
}
